package com.dianping.cat.consumer.event.model.transform;

import com.dianping.cat.consumer.event.model.IVisitor;
import com.dianping.cat.consumer.event.model.entity.EventName;
import com.dianping.cat.consumer.event.model.entity.EventReport;
import com.dianping.cat.consumer.event.model.entity.EventType;
import com.dianping.cat.consumer.event.model.entity.GraphTrend;
import com.dianping.cat.consumer.event.model.entity.Machine;
import com.dianping.cat.consumer.event.model.entity.Range;
import com.dianping.cat.consumer.event.model.entity.StatusCode;

public abstract class BaseVisitor
  implements IVisitor {
  public void visitEventReport(EventReport eventReport) {
/* 15 */     for (Machine machine : eventReport.getMachines().values()) {
/* 16 */       visitMachine(machine);
    }
  }



  public void visitGraphTrend(GraphTrend graphTrend) {}


  public void visitMachine(Machine machine) {
/* 26 */     for (EventType type : machine.getTypes().values()) {
/* 27 */       visitType(type);
    }
  }


  public void visitName(EventName name) {
/* 33 */     for (Range range : name.getRanges().values()) {
/* 34 */       visitRange(range);
    }

/* 37 */     if (name.getGraphTrend() != null) {
/* 38 */       visitGraphTrend(name.getGraphTrend());
    }

/* 41 */     for (StatusCode statusCode : name.getStatusCodes().values()) {
/* 42 */       visitStatusCode(statusCode);
    }
  }



  public void visitRange(Range range) {}



  public void visitStatusCode(StatusCode statusCode) {}


  public void visitType(EventType type) {
/* 56 */     for (EventName name : type.getNames().values()) {
/* 57 */       visitName(name);
    }

/* 60 */     if (type.getGraphTrend() != null)
/* 61 */       visitGraphTrend(type.getGraphTrend()); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/event/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */